package com.ay.weixin.fdc.boss.customer.event;

import java.io.IOException;

import javax.servlet.ServletException;

import org.lizar.controller.Event;
import org.lizar.controller.intercepter.Before;
import org.lizar.controller.loader.BasicLoader;
import org.lizar.controller.loader.EventLoader;
import org.lizar.ioc.Container;
import org.lizar.log.Log;
import org.lizar.log.Logger;

import com.ay.weixin.fdc.admin.customer.db.IbatisCustomerDao;

public class OldLoginRedirect extends Event implements Before{
	
	private Log log=Logger.newInstance(this.getClass());
	
	private IbatisCustomerDao customerDao;
	
	@Override
	public void init_property() throws Exception {
		
		customerDao=Container.get(IbatisCustomerDao.class);
	}

	@Override
	public String default_handling_path() {
		return "/administrator/360thyf/loginnow";
	}

	@Override
	public void handle(EventLoader el) throws ServletException,
			IOException {
		
		el.response_to_root(CustomerLogin.login_path());
	}
	

	@Override
	public void before(BasicLoader bl) throws ServletException, IOException {
		
		
	}

	

}
